<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui/css/layui.css"  media="all">
</head>
<body>
<div class="layui-container">
<table id="pTable" lay-filter="pTableFilter"></table>
</div>
<script type="text/html" id="IdFormat">
    {{d.LAY_INDEX}}
</script>
<script src="layui/layui.js" charset="utf-8"></script>
<script>
    layui.use(['jquery','table'], function(){
        var table = layui.table
            ,$ = layui.jquery;

        var listTableObj = table.render({
            elem: '#pTable'
            ,url: '/getFileDetailPage'
            ,page:true
            ,cols: [
                [ //表头
                {type: 'numbers', title: '序号', width: '80'}
                ,{field: 'fileName', title: '文件名', width: '200'}
                ,{field: 'fileContent', title: '内容'}
            ]
            ]
            ,response: {
                statusName: 'code' //数据状态的字段名称，默认：code
                ,statusCode: 0 //成功的状态码，默认：0
                ,msgName: 'msg' //状态信息的字段名称，默认：msg
                ,countName: 'totalRecord' //数据总数的字段名称，默认：count
                ,dataName: 'results' //数据列表的字段名称，默认：data
            }
            ,where: {fileName: '[[${fileName}]]'}
        });
    });
</script>
</body>
</html>